function loadMessaging()
{
	$.post
	('model/ajax/messaging.php',
		{
			UserID:UserID,
			SessionID:SessionID
		},
		loadMessagingSuccess
	)
}

function loadMessagingSuccess(data)
{
//	alert ("Not yet implemented");
	$("#messaging").slideDown(2000);
	$("#messaging-result-container").html(data);
	
	$("#menu-messaging-send").click(sendMessage);

}


function sendMessage()
{
	$.post
	('model/ajax/messaging-send.php',
		{
			UserID:UserID,
			SessionID:SessionID,
			Recipients:$("#messaging-recipients-select").val(),
			Message:$("#messaging-message-text").val()
		},
		sendMessageSuccess
	)
}

function sendMessageSuccess(data)
{
	alert (data);
}
